<%--
  Created by IntelliJ IDEA.
  User: 11875
  Date: 2021/11/3
  Time: 11:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>宿舍管理系统</title>
    <link rel="stylesheet" href="/css/homepageheder.css">
    <link rel="stylesheet" href="/css/tradmilsit.css">
    <link rel="stylesheet" href="/css/addinfo.css">
    <link rel="stylesheet" href="/css/bootstrap.css">
</head>

<body>
<!-- 头部 -->
<div class="heder">
    <div class="title">
        <div class="title_t">
            <span>宿 舍 管 理 系 统</span>
        </div>
        <div class="title_r">
            欢迎您！！！
            <c:if test="${user.typeid == 1}">
                班主任老师
            </c:if>
            <c:if test="${user.typeid == 2}">
                班主任老师
            </c:if>
            ${user.uname}
            <span>|</span>
            <a href="javascript:history.go(-1)">返回上一页</a>
            <span>|</span>
            <a href="/user/main">返回主页</a>
            <span>|</span>
            <a href="/user/updatepasswordpage">修改密码</a>
            <span>|</span>
            <a href="/logout">退出</a>
        </div>
    </div>
</div>


<div class="hr"></div>

<div id="content">
    <div class="container clearfix">
        <h3>添 加 学 生</h3>
        <form action="/student/addstudent" method="post">
            <input type="hidden" name="cid" value="${classes.cid}">
            <div class="classinput">
                <div class="classname">
                    <span>姓名</span>
                    <input type="text" name="sname">
                </div>
                <div class="gender">
                    <span>性别</span>
                    <input type="radio" name="sex" value="男">男
                    <input type="radio" name="sex" value="女">女
                </div>
                <div class="phone">
                    <span>电话</span>
                    <input type="text" name="mobile">
                </div>
                <div class="birthday">
                    <span>生日</span>
                    <input type="date" name="birthday">
                </div>
                <div class="address">
                    <span>家庭地址</span>
                    <input type="text" name="address">
                </div>
                <div class="parentname">
                    <span>父母姓名</span>
                    <input type="text" name="parentname">
                </div>
                <div class="parentmobile">
                    <span>父母电话</span>
                    <input type="text" name="parentmobile">
                </div>
                <div class="clearfix">
                    <button type="submit" class="btn btn-primary">添 加</button>
                </div>
            </div>
        </form>
        <div class="add_batch">
            <h3>批量添加新的学生</h3>
            <div>
                <input type="file"
                       accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
                       ID="fileSelect" runat="server"/>
            </div>

            <div class="clearfix add_bt">
                <button type="submit" class="btn btn-primary">添 加</button>
            </div>
        </div>
    </div>
</div>


<script src="/js/jquery-3.6.0.min.js"></script>
<script src="/js/bootstrap.js"></script>
</body>

</html>